# @Author   :   hany
# @Time      :  2021/5/21
from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.financePage import financePage
from commen.page.ann.indexPage import IndexPage
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage


class FinanceCase(UIParent):

    @classmethod
    def test_01enterpriseFinanceIndexCheck(self):
        '''企业金融首页校验'''
        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("企业金融")
        indexText = financePage.getEnterpriseFinanceText()
        asserts.true(indexText, "企业金融首页校验")

    """@classmethod
    def test_02perFinanceIndexCheck(self):
        '''个人金融首页校验'''
        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.clickSearch()
        searchPage.setPerFinance()
        searchPage.clickPerFinance()
        indexPerText = financePage.getPerFinanceText()
        asserts.true(indexPerText, "个人金融首页校验")
"""
    # @classmethod
    # def test_03bhFinanceIndexCheck(self):
    #     '''北行金融首页校验'''
    #     MyPage.loginByStatu()
    #     IndexPage.clickIndex()
    #     searchPage.searchEvent("北行金融")
    #     indexBhText = financePage.getBhFinanceText()
    #     asserts.true(indexBhText, "北行金融首页校验")